package com.financing.platform.service.impl;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.platform.dao.ISourceProductDao;
import com.financing.platform.dto.SourceProductDTO;
import com.financing.platform.service.ISourceProductService;

@Service("sourceProductServiceImpl")
@Transactional
public class SourceProductServiceImpl extends BaseServiceImpl implements ISourceProductService {

	@Autowired
	ISourceProductDao sourceProductDao;
	
	@Override
	public int addSourceProduct(SourceProductDTO sourceProduct)  throws SQLException{
		return sourceProductDao.addSourceProduct(sourceProduct);
	}

	@Override
	public int deleteSourceProduct(SourceProductDTO sourceProduct)  throws SQLException {
		return sourceProductDao.deleteSourceProduct(sourceProduct);
	}

	@Override
	public List<Map<String, String>>  querySourceProduct(SourceProductDTO sourceProduct)
			throws SQLException {
		return sourceProductDao.querySourceProduct(sourceProduct);
	}
	
	
}
